package ooday03;

public class Dog extends Animal  implements Swim {
    Dog(String name,int age,String colour){
        super(name,age,colour);
    }
    void lookHome(){
        System.out.println(colour+"色的"+age+"岁的叫"+name+"的小狗在看家");
    }
    void eat(){
        System.out.println(colour+"色的"+age+"岁的叫"+name+"的小狗在吃骨头");
    }
    public void swim(){
        System.out.println(colour+"色的"+age+"岁的叫"+name+"的小狗在游泳");
    }
}
